minor change in Logic

-refactor name of isFloatingTask
-update teh logic in the smae method