added convenient function