added delay. needs work