removed weird pin check