added foto function