add function prints status