corrected bug in custom_stuff