Tried to add max but it didn't work :(