moved define into View