more random functions that are helpful for me now