forgot to add ready function