added secure pass
added initial code
refactored
refactored
min