added sort and lock