move function to proper folder