changed act() to boolean