made the frontmost thing work for once and for all