is_locked method was added