added set function to position