changed getRemember function to return a boolean