implement preposition fucntion