check action instead of variable defenition