works except for passing numbers