adjust positioning calculation