added function for removing element from specific position from the list