added method for setting of status