clerk functionality added