removed the phi angle argument and added some prints