sample apps run properly but when I do one it doesn't!

that worked like magic! thank you!