added prototype to test promises