helper functions for fabric