created some more functions