compiles, but doesn't work
remove unused fucntion