failed attempt at creating a custom method