fixed abolute problems i think with max