Helper functions i created