defining functions real quick in models, views