minor fix to lock homework