modified HEARTCOMMAND