revise new_sine function in gtable library