added simple version of define