fixed as it works