added us back to sine function