code cleanup float adjustment