changed code in segue