add required function for status field