fixed computation for pulse