added functions to positioning