moved bounds adjustment logic in separate method