added boolean for unlocked