status change modified with function