Fixed : computing objective