added If method