just some functions I use to make things easier