status message into function