trying to figure out why this is giving errors...