wrote an assignment helper for status