added unlock method