restoring functionality