got this almost working... still something is weird