need to fix play code, doesn't function with action