trying to run old code properly