squas me - extract common logic