added new method for checking actions