working on logic for model calls