make genPass closer to desktop version of the code