trying to git rid of fatal error