added the 'locked' param
cosmetics
typo