logic fix to reject funcitonality