added some new functions for faster data retrieval