worked on floating mode