updated to use parseAction