For some reason can't use a function