added reverse funtion and floor division